package com.qf.service.impl;/*
@author fu
@date 2022/3/2816:26
*/

import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    
    //注入usermapper
    @Autowired
    private UserMapper userMapper;
    @Override
    public User isLogin(String username) {

        User user = userMapper.isLogin(username);

        if (user!=null){
            return user;
        }
        return null;
    }
}
